<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>棒棒糖</title>
		<style>
			.d1{
				width: 500px;
				height: 500px;
				/* 背景颜色属性 */
				background-color: #e4393c;
				 border-radius: 50%;
			}
			.d2{
				width: 350px;
				height: 350px;
				/* 背景颜色属性 */
				background-color: #ffff00; 
				border-radius: 50%;
				/* 相对定位：根据父级进行定位 */
				position: relative;
				left: 75px;
				top: 75px;
			}
			.d3{
				width: 200px;
				height: 200px;
				/* 背景颜色属性 */
				background-color: #00ff00; 
				/* 画圆：1.空间  2.边框/背景颜色填充 3.倒角*/
				border-radius: 50%;
				position: relative;
				left: 75px;
				top: 75px;
			}
			p{
				width: 20px;
				height: 300px;
				background-color: #ff00ff;
				/* 定位：相对定位 */
				position: relative;
				left: 530px;
				top: -150px;
				/* 高级属性：转换属性：旋转，缩放，平移 */
				transform: rotate(-45deg);
				/* 倒角 */
				border-radius: 5px;

			}
			/* 微笑表情 */
			.face{
				width: 350px;
				height: 350px;
				background-color: #ffaa00;
				border-radius: 50%;
				
			}
			.left-eye-white{
				width: 130px;
				height: 20px;
				background-color: #ffffff;
				border-radius: 20px;
				position: relative;
				top: 70px;
				left: 30px;
			}
			.left-eye-black{
				width: 20px;
				height: 20px;
				background-color: #000000;
				border-radius: 50%;
				
			}
			.right-eye-white{
				width: 130px;
				height: 20px;
				background-color: #ffffff;
				border-radius: 20px;
				position: relative;
				top: 51px;
				left: 188px;
				}
				.right-eye-black{
					width: 20px;
					height: 20px;
					background-color: #000000;
					border-radius: 50%;
					
				}
				.left-blush{
					width: 100px;
					height: 100px;
					background-color: #ffaaff;
					border-radius: 50%;
					position: relative;
					top: 90px;
					left: 20px;
					
				}
				.right-blush{
					width: 100px;
					height: 100px;
					background-color: #ffaaff;
					border-radius: 50%;
					position: relative;
					top: -12px;
					left: 220px;
					
				}
			.d4{
				width: 180px;
				height: 180px;
				border-top: 10px solid black;
				border-left: 10px solid black;
				border-radius: 50%;
				transform: rotate(228deg);
				position: relative;
				top: -85px;
				left: 81px;
			}
		</style>
	</head>
	<body>
		<!-- 思路：html  4个元素  嵌套 
		      1，设置嵌套3个div
			  2，设置1个p
			       css
			  选择器：抓取页面元素  ②类选择器，任何元素通用属性class="别名"
			                         css样式：.别名，抓取元素添加效果【样式】
		-->
		<div class="d1">
			<div class="d2">
				<div class="d3"></div>
			</div>
		</div>
		<p></p>
		<!-- 微笑表情 -->
		<div class="face">
			<div class="left-eye-white">
				<div class="left-eye-black"></div>
			</div>
			<div class="right-eye-white">
				<div class="right-eye-black"></div>
			</div>
			<div class="left-blush"></div>
			<div class="right-blush"></div>
			<div class="d4"></div>
		</div>
		
	</body>
</html>